package cn.akwangl.concurrency.web.event;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;

/**
 * 事件源
 *
 * @author 阿坤同学
 * @date 2025/2/14 09:32
 */
@Getter
@Setter
@ToString
public class SourceEvent extends ApplicationEvent implements Serializable {

    /**
     * 名称
     */
    private String name;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public SourceEvent(Object source) {
        super(source);
    }
}
